{extend name="base" /}

{block name="body"}
<section class="content-header">
  <h1>
    用户级别
    <small>用户 管理</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">用户级别</li>
  </ol>
</section>

<section class="content">

  <!-- 列表 -->
  <div class="row">
    <div class="col-xs-12">

      <div class="box">

        <div class="box-header">
          <a href="javascript:;" data-url="{:url('add')}" proc-url="{:url('addProc')}" title="添加类型" class="btn btn-success btn-social-icon add-btn"><i class="fa fa-plus-square"></i></a>

          <a href="javascript:location=location" title="刷新" class="btn btn-default btn-social-icon"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a>
          <b style="color:#444">&nbsp;&nbsp;&nbsp;用户级别总数：{$info->total()}</b>
        </div>

        <div class="box-body table-responsive no-padding">
          <table class="table table-hover">
            <tr class="vertical-c">
              <th>用户级别</th>
              <th>需要经验值</th>
              <th>折购率</th>
              <th>操作</th>
            </tr>
            {volist name="info" id="v"}
            <tr class="vertical-c">
              <td>{$v.rank_name}</td>
              <td>{$v.min_exp}</td>
              <td>{$v.discount_rate} %</td>
              <td>

                  <a href="javascript:;" title="编辑" data-id="{$v.id}" data-url="{:url('edit')}" proc-url="{:url('editProc')}" class="btn btn-xs btn-info btn-social-icon edit-btn"><i class="fa fa-pencil"></i></a>

                  <a href="javascript:;" title="删除" data-id="{$v.id}" data-url="{:url('delete')}" class="btn btn-xs btn-danger btn-social-icon delete-btn"><i class="fa fa-trash-o"></i></a>
              </td>
            </tr>
            {/volist}
          </table>
        </div>

        <div class="box-footer clearfix">
            {$info->render()}
        </div>
      </div>

    </div>
  </div>


</section>

{/block}

{block name="script"}
  <script type="text/javascript" src="__AJS__/user_rank/index.js"></script>
{/block}